package com.db.stockexchange.common.parsing;

public enum RejectReason {
	INVALID_TAG_NUMBER(0),
	REQUIRED_TAG_MISSED(1),
	TAG_NOT_DEFINED_FOR_THIS_MESSAGE_TYPE(2),
	UNDEFINED_TAG(3),
	TAG_SPECIFIED_WITHOUT_VALUE(4),
	VALUE_IS_INCORRECT(5),
	INCORRECT_DATA_FORMAT_FOR_VALUE(6),
	COMP_ID_PROBLEM(9),
	INVALID_MSG_TYPE(11);
	
	int number;
			
	private RejectReason(int number) {
		this.number = number;
	}
	
	public int asNumber() {
		return number;
	}
}
